package com.branches;

import com.branches.accept.ListUtil;

import java.util.Arrays;
import java.util.List;

public class InterfaceTest {
    public static void main(String[] args) {
        List<Integer> values = Arrays.asList(1, 2, 3, 4);
        ListUtil.execute(values, System.out::println);

        StringBuilder a = new StringBuilder();
        a.append("12");
        a.append("\n");
        a.append("13");
        String[] vs = a.toString().split("\n");
        Arrays.asList(vs).forEach(System.out::println);
    }
}
